<template>
<div>
  <h1>{{ actor }}出演电影</h1>
  <ul>
    <li>电影</li>
  </ul>
  <ul v-for="i in list">
    <li>{{i.name}}</li>
  </ul>

</div>
</template>

<script>
export default {
  name: "actor",
  data(){
    return{
      actor:this.$route.query.actor,
      list : [],

    }
  },
  methods:{
    show_yy(){
      this.$axios.get("users/Actor_API/?actor="+this.actor)
      .then(i=>{
        this.list = i.data.list
      })
    }
  },
  mounted() {
    this.show_yy()
  }
}
</script>

<style scoped>

</style>
